<template>
    <div class="search">
        <!-- <el-tag class="tag">{{tag}}</el-tag> -->
        <el-radio-group v-model="value"  size="small" @change="change" style="">
            <el-radio-button :label="index+1" v-for="(item,index) in values" :key="index">{{item}}</el-radio-button>
        </el-radio-group>
    </div>
    </div>
</template>
<script>
    // 单选类型组件
    export default {
        name: "passtime-module",
        props: ["tag", "width","values","onetype"],
        data() {
            return {
                value: this.onetype,
            };
        },
        mounted() {
        },
        watch: {

        },
        methods: {
            change(){
                this.$emit("tables",this.value);
                console.log(this.value, "valuebiaoxian");
            },
        }
    };
</script>

<style lang='scss' scoped>
    .search {
        margin-left: 20px;

        .tag {
            display: inline-block;
            vertical-align: top;
        }
    }

    .el-tag {
        background: #ffffff;
        border: 1px solid #dcdfe6;
    }
</style>